home *** CD-ROM | disk | FTP | other *** search
- Path: cayley.zfe.siemens.de!not-for-mail
- From: lauther@cayley.zfe.siemens.de (Ulrich Lauther)
- Newsgroups: comp.lang.c++,gnu.g++.help
- Subject: Re: Unable to compile inline functions
- Followup-To: comp.lang.c++,gnu.g++.help
- Date: 4 Apr 1996 14:26:43 GMT
- Organization: Siemens
- Distribution: world
- Message-ID: <4k0m73$6pp@salomon.zfe.siemens.de>
- References: <4js108$pm4@ncar.ucar.edu> <4js6j8$7p3@bmtlh10.bnr.ca>
- NNTP-Posting-Host: cayley.zfe.siemens.de
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- John Hickin (hickin@bnr.ca) wrote:
- : Your inlines should appear in a public header file.
- : The class header is an ideal place. You can put them outside the class
- : definition at the bottom of the file. This way you don't pollute the
- : interface with implementation details and, more importantly, you can roll
- : out the inline definitions in the 'best' order which means inlines that
- : use inlines come after the ones they depend on. This isn't required by
- : C++ but some versions of g++, for example, does a lot better if you do
-
- what does "a lot better" mean?
-
- -faster compilation?
- -better code?
- -more inlining?
-
- : this than if you don't.
- --
- -lauther
-
- [nosave]
- ----------------------------------------------------------------------------
- Ulrich Lauther ph: +49 89 636 48834 fx: ... 636 42284
- Siemens ZFE BT SE 14 Internet: lauther@zfe.siemens.de
-